<?php
class CustomForm extends CFormModel {

    public $record_id;
    public $value;
    
    public function rules() {
        return array(
            array('record_id', 'required'),
            array('record_id,value', 'length', 'max' => 10),
        );
    }

    /**
     * @return array customized attribute labels (name=>label)
     */
    public function attributeLabels() {
        return array(
            'record_id' => 'User id',
            'value' => 'Value',
        );
    }

}